<?php

Solar::loadClass('Solar_Base', true);

class Domain51_Controller_Abstract extends Solar_Base
{
    private $_data = array();
    
    protected $_view = null;
    
    protected function _initView()
    {
        $this->_view = Solar::factory('Solar_View');
        $templatePath = str_replace('_', '/', str_replace('_Controller', '_View', get_class($this)));
        $this->_view->addTemplatePath($templatePath);
    }
    
    public function __get($key)
    {
        return isset($this->_data[$key]) ? $this->_data[$key] : null;
    }
    
    protected function __set($key, $value)
    {
        $this->_data[$key] = $value;
    }
    
    public function __isset($key) {
        return isset($this->_data[$key]);
    }
}

?>